import Mock from 'mockjs'


const data = Mock.mock({
  'list|10': [{
    'title': '@ctitle(2)',
    'id': '@id',
    'children|5-10': [{
      'title': '@ctitle',
      'url': '@image(100x100, @color)',
      'desc': '@cword(10,20)',
      'id': '@id'
    }]
  }]
})


Mock.mock('/api/classify', () => {
  return {
    code: 200,
    data: data.list
  }
})